#include "mediaplayer.h"
#include <QLabel>
#include <QDebug>

MediaPlayer::MediaPlayer(QWidget *parent) : QWidget(parent)
{    
    label_ = new QLabel(this);
    label_->setText("aaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa\naaaaaaaaa");
}


void MediaPlayer::resizeEvent(QResizeEvent *event) {
    auto size = this->size();
    auto psize = dynamic_cast<QWidget*>(this->parent())->size();
    qDebug() << "MediaPlayer::resizeEvent: " << size << "psize:" << psize << "\n";
}
